#include <stdio.h>

void main(){
    int c;
    if(getchar() != EOF){
        c = 1;
    }else{
        c = 0;
    }
    printf("%d\n", c);
}